<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
    <link th:replace="common/tip"/>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <h3 class="header smaller lighter blue"><em class="icon-list"></em>加入战队</h3>
            <form class="form-horizontal" th:object="${footSociatySearchForm}" method="post"
                  th:action="@{/hy/footSociaty/search}" name="form"
                  th:if="${session.footUser.qx.text == '会员' || session.footUser.qx.text == 'VIP1' || session.footUser.qx.text == 'VIP2' || session.footUser.qx.text == 'VIP3'}">
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span12">
                        <div class="row-fluid">
                            <a class="btn" type="button" th:href="@{/index}"><em class="icon-arrow-left"></em>返回首页</a>
                        </div>
                        <div class="row-fluid">
                            <table style="width:100%" border="0">
                                <tbody>
                                <tr>
                                    <th style="width: 55px;">关键字:</th>
                                    <td style="width: auto;"><input th:field="*{name}" type="text" name="name"
                                                                    class="input_fix" placeholder="关键字"/></td>
                                    <th style="width: 55px;">段位:</th>
                                    <td style="width: auto;"><select th:field="*{danGradingId}" id="danGradingId"
                                                                     name="danGradingId" class="input_fix" title="">
                                        <option value="">全部</option>
                                        <option th:each="t:${danGradingList}" th:value="${t.id}" th:text="${t.name}">
                                            123
                                        </option>
                                    </select></td>
                                    <td style="width:120px;">
                                        <button class="btn btn-info" style="float: right;" type="button"
                                                onclick="pagechange(1);"><em class="icon-search"></em>查询
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="row-fluid">
                            <div class="span2">
                                <span>对标</span>
                            </div>
                            <div class="span10">
                                <div class="row-fluid">
                                    <div class="span5">
                                        <span>战队</span>
                                    </div>
                                    <div class="span2">
                                        <span>活跃度</span>
                                    </div>
                                    <div class="span2">
                                        <span>人数</span>
                                    </div>
                                    <div class="span3">
                                        <span>等级/排位</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid" th:each="t:${footSociatyList}" style="border:1px white solid">
                            <div class="span2">
                                <img th:src="@{'/' + ${t.logoUrl}}" src="" alt="" th:if="${t.logoUrl != null}"/>
                                <img th:src="@{'/images/logo2.png'}" src="" alt="" th:if="${t.logoUrl == null}"/>
                            </div>
                            <div class="span10">
                                <div class="row-fluid">
                                    <div class="span5">
                                        <span th:text="${t.name}">123</span>
                                    </div>
                                    <div class="span2">
                                        <span th:text="${t.liveness}">123</span>
                                    </div>
                                    <div class="span2">
                                        <span th:text="${t.haveNum}">123</span>
                                    </div>
                                    <div class="span3">
                                        <span th:text="'等级:' + ${t.level}">123</span>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span5">
                                        <span th:text="'队长:' + ${t.userName}">123</span>
                                    </div>
                                    <div class="span2">
                                        <span><a th:href="@{/hy/footSociaty/joinSociaty(zdId=${t.id})}"
                                                 class="btn btn-mini" type="button" title="加入战队"
                                                 th:unless="${session.mySociaty.zdId == t.id}">加入战队</a></span>
                                    </div>
                                    <div class="span2">
                                        <span>&nbsp;</span>
                                    </div>
                                    <div class="span3">
                                        <span th:text="'段位:' + ${t.danGradingName}">123</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid" th:include="common/page :: page"></div>
                        <!--/#page-content-->
                    </div>
                    <!--/#page-content-->
                </div>
            </form>
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/jsList"></div>
</body>
</html>